﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessClass.StateMachine.Core;

namespace BusinessClass.StateMachine
{
    /// <summary>
    /// 生成图片
    /// </summary>
    public class MakePicState : ISate<IEnumerable<string>>
    {
        public dynamic Config { get; private set; }
        public string TxtRenderingHint { get; private set; }
        public MakePicState(dynamic config, string txtRenderingHint)
        {
            Config = config;
            TxtRenderingHint = txtRenderingHint;
        }
        /// <summary>
        /// 返回图片路径
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public IEnumerable<string> Accept(Machine m)
        {
            return m.VisitMakePic(this);
        }
    }
}
